var util = require("util");

function Person(name){
	this.name = name;
}

Person.prototype.say = function(){
	console.log("this Person class say method");
}

function MyPerson(name){
	this.name = name;
	
	this.newSay = function(){
		console.log("this is MyPerson class newSay method  achieve one");
	}
}

MyPerson.prototype.newSay = function(){
	console.log("this is MyPerson class newSay method achieve two");
}

util.inherits(MyPerson, Person);

var myPerson = new MyPerson("huang");
myPerson.say();
myPerson.newSay();